<?php
error_reporting(0);
$isadmin=1;    
include '../comm/config.php';
include '../comm/msgset.php';
include '../comm/checkpostandget.php';
include 'check.php';
$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {
	die(ERR_DB);exit;
}
else
{	
	mysql_select_db($dbname);
	if ($_POST["fu"]==""){
		echo ("<script language=javascript>");
		echo ("alert( '错误：您还没有选择呢！');");
		echo ("location.href = 'javascript:history.back()'"); 
		echo ("</script>");
	}
	else{
		$page=$_GET["page"];
		$idlist="";
		foreach($_POST["fu"] as $var)//通过foreach循环取出多选框中的值
		{
			$idlist=$idlist.",".$var;
		}
		$idlist=substr($idlist,1,strlen($idlist)-1);
		$sql="delete from ".$BIAOTOU."shop where Id in (".$idlist.")";
		mysql_query($sql);
	}
	echo "<script language=javascript>window.location='shoplist.php?page=".$page."';</script>";
}

mysql_close($link);
?>






